home *** CD-ROM | disk | FTP | other *** search
-
-
-
- _EXIT C Library Procedures _EXIT
-
-
-
- NNAAMMEE
- _exit - terminate a process
-
- SSYYNNOOPPSSIISS
- __eexxiitt((ssttaattuuss))
- iinntt ssttaattuuss;;
-
- DDEESSCCRRIIPPTTIIOONN
- __e_x_i_t terminates a process with the following consequences:
-
- All of the descriptors open in the calling process are
- closed. This may entail delays, for example, waiting for
- output to drain; a process in this state may not be killed,
- as it is already dying.
-
- If the parent process of the calling process is executing a
- _w_a_i_t or is interested in the SIGCHLD signal, then it is
- notified of the calling process's termination and the low-
- order eight bits of _s_t_a_t_u_s are made available to it; see
- _w_a_i_t(2).
-
- The parent process ID of all of the calling process's exist-
- ing child processes are also set to 1. This means that the
- initialization process (see _i_n_t_r_o(2)) inherits each of these
- processes as well. Any stopped children are restarted with
- a hangup signal (SIGHUP).
-
- Most C programs call the library routine _e_x_i_t(3), which per-
- forms cleanup actions in the standard I/O library before
- calling __e_x_i_t.
-
- RREETTUURRNN VVAALLUUEE
- This call never returns.
-
- SSEEEE AALLSSOO
- fork(2), sigvec(2), wait(2), exit(3)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 May 22, 1986 1
-
-
-
-